import java.util.Random;
public class Operand {
    private Random rnd1 = new Random();
    private Random rnd2 = new Random();
    private Random rnd3 = new Random();
    private RationalNumber  b;
    private String  a, op1, op2;
    private int c, d;

    public Operand(){

    }

    public String getOp1(){
        op1 = getA();
        return op1;
    }

    public String getOp2(){
        op2 = getA();
        return op2;
    }

    private String  getA() {
        a = String.valueOf(rnd1.nextInt(9) + 1);
        return a;
    }

    private RationalNumber getB(){
        while (true) {
            c = rnd1.nextInt(10) + 1;
            d = rnd2.nextInt(10) + 1;
            b = new RationalNumber(c, d);
            if (c < d){
                break;
            }
        }
        return b;
    }
}